package o;

import com.huawei.appgallery.agwebview.whitelist.bean.DomainWhiteListResponse;
import com.huawei.appgallery.serverreqkit.api.bean.ResponseBean;
import com.huawei.appgallery.serverreqkit.api.listener.IServerCallBack;

public class bbf implements IServerCallBack {
    private azu ˋ = null;

    public bbf(azu o_azu) {
        this.ˋ = o_azu;
    }

    public void ˏ() {
        Logger.ˎ("DomainWhiteTask", "execute().");
        cfw.ˎ(bbm.ˋ(), this);
    }

    public void ˏ(int i) {
        Logger.ˎ("DomainWhiteTask", "execute().");
        cvt ˋ = bbm.ˋ();
        ˋ.setServiceType_(i);
        cfw.ˎ(ˋ, this);
    }

    public void prePostResult(BaseRequest o_cvu, ResponseBean responseBean) {
        if (responseBean != null && responseBean.getResponseCode() == 0 && responseBean.getRtnCode_() == 0) {
            DomainWhiteListResponse domainWhiteListResponse = (DomainWhiteListResponse) responseBean;
            if (!CollectCheck.isEmpty(domainWhiteListResponse.ॱ())) {
                bbd.ˋ(domainWhiteListResponse.ॱ());
                baz.ˏ();
            }
            if (!CollectCheck.isEmpty(domainWhiteListResponse.ˊ())) {
                new bai().ˏ(domainWhiteListResponse.ˊ(), domainWhiteListResponse.ˎ());
            }
        }
    }

    public void notifyResult(BaseRequest o_cvu, ResponseBean responseBean) {
        boolean z = false;
        if (responseBean != null) {
            int responseCode = responseBean.getResponseCode();
            if (responseCode == 0 && responseBean.getRtnCode_() == 0) {
                DomainWhiteListResponse domainWhiteListResponse = (DomainWhiteListResponse) responseBean;
                if (domainWhiteListResponse.ॱ() != null && domainWhiteListResponse.ॱ().size() > 0) {
                    z = true;
                }
            }
            if (this.ˋ != null) {
                if (Logger.ˎ()) {
                    Logger.ˎ("DomainWhiteTask", "updateCallback not null");
                }
                this.ˋ.ˊ(z, responseCode);
            }
        }
    }
}
